import os
import sys

# 打开文件
# f = open('url.txt')  # 相对路径
f = open('url.txt')  # 相对路径
# path = os.getcwd()
# path =  os.path.dirname(sys.argv[0])

# filename = path + '/url.txt'
# f = open(filename, mode='r', encoding='utf-8')  # 绝对路径
# # 读取文件
# context = f.read(5)
# print(context)
# context = f.readline()
# print(context)
f = open('url.txt')
context = f.readlines()
print(context)
# # 关闭文件
f.close()